<?php


namespace core\utils;


use Meilisearch\Client;

class MsClient
{
    private static $ins;

    static function client()
    {
        if (self::$ins) {
            return self::$ins;
        }
        return new Client(env('MEILISEARCH_URL', 'http://127.0.0.1:7700'), env('MEILISEARCH_APIKEY'));
    }
}